-- GENERATED SPELL FOR [Frenzied Worgen] --


function spell0_26683(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(48138,pUnit)
pUnit:RegisterEvent('Sorts_26683', 8327, 1)
end

function spell1_26683(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(48142,pUnit)
pUnit:RegisterEvent('Sorts_26683', 605, 1)
end

function spell2_26683(pUnit, Event) --@Mortal Wound,n/a--
pUnit:FullCastSpellOnTarget(48137,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26683', 20350, 1)
end

function spell3_26683(pUnit, Event) --@Mortal Wound,n/a--
pUnit:FullCastSpellOnTarget(59265,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26683', 20272, 1)
end

function Sorts_26683(pUnit, Event)
local choix_sorts_26683 = math.random(0, 3)
if choix_sorts_26683 == 0 then
pUnit:RegisterEvent('spell0_26683', 1, 1)
end
if choix_sorts_26683 == 1 then
pUnit:RegisterEvent('spell1_26683', 1, 1)
end
if choix_sorts_26683 == 2 then
pUnit:RegisterEvent('spell2_26683', 1, 1)
end
if choix_sorts_26683 == 3 then
pUnit:RegisterEvent('spell3_26683', 1, 1)
end
end

function mob26683_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26683', math.random(1500, 3000), 1)
end

function mob26683_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26683_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26683_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26683, 1, 'mob26683_Action')
RegisterUnitEvent(26683, 2, 'mob26683_Leave')
RegisterUnitEvent(26683, 3, 'mob26683_Kill')
RegisterUnitEvent(26683, 4, 'mob26683_Die')
